<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <h2>{{name}}</h2>
        <h2>{{base}}</h2>
        <h3 v-text='age'></h3>
        <input type="text" v-model="name">
        <div v-html="html"></div>
        <!-- <h4 v-if="show">if</h4> -->
        <h3 v-show="show" v-on:click="handeler">{{show}}</h3>
        <img v-bind:src="src" alt="">
    </div>
    <script src="./js/dep.js"></script>
    <script src="./js/watcher.js"></script>
    <script src="./js/compiler.js"></script>
    <script src="./js/observer.js"></script>
    <script src="./js/vue.js"></script>
    <script>
        let vm = new Vue({
            el:'#app',
            data:{
                name:'syk',
                base:'杭州',
                age:'27',
                src:'./a.jpg',
                info:{
                    home:'龙湖'
                },
                show:false,
                html:'<span>这个是v-html的内容</span>'
            },
            methods:{
                handeler(){
                    console.log(0)
                }
            }
        })
        // vm.name = {
        //     ha:'aaa'
        // }
    </script>
</body>
</html>